package com.xbj.voa.controller.form;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author: 木火
 * @create: 2024-01-14
 * @description:
 **/
@Data
@ApiModel
public class RegisterForm {

    @NotBlank(message = "注册邀请码不能为空")
    @Pattern(regexp = "^[0-9]{6}$",message = "注册邀请码必须为6位数字")
    private String registerCode;

    @NotBlank(message = "微信临时授权字符串不能为空")
    private String code;

    @NotBlank(message = "昵称不能为空")
    private String nickName;

    @NotBlank(message = "头像不能为空")
    private String photo;

}
